'use strict';

var app = angular.module('Barcode');

app.service('BarcodeEnum', [function(){
    return {
    	//条码类型
        BarcodeType: {
            ItemMaster: {Value: 0, Text: '物料'},
            Part: {Value: 1, Text: '部件'},
            Warehouse: {Value: 2, Text: '仓库'},
            Container: {Value: 3, Text: '容器'},
            Device: {Value: 4, Text: '设备'},
            Person: {Value: 5, Text: '人'},
            Other: {Value: 6, Text: '其他'}
        },
        //条码状态
        BarcodeStatus: {
            NoActive: {Value: 0, Text: '未激活'},
            Online: {Value: 1, Text: '上线'},
            Downline: {Value: 2, Text: '下线'},
            Scrap: {Value: 3, Text: '报废'},
            Complete: {Value: 4, Text: '完工'},
            Invalid: {Value: 5, Text: '失效'}
        },
        //业务类型
        BusinessStatus: {
            Start: {Value: 0, Text: '开始'},
            Complete: {Value: 1, Text: '完成'}
        },
        //质检类型
        QCType: {
            All: {Value: 0, Text: '全检'},
            Patrol: {Value: 1, Text: '巡检'},
            First: {Value: 2, Text: '首检'}
        },
        //质检状态
        QCStatus: {
            Qualified: {Value: 0, Text: '合格'},
            Failure: {Value: 1, Text: '不合格'},
            Concession: {Value: 2, Text: '让步接收'},
            Quality: {Value: 3, Text: '品质判定'},
            Rework: {Value: 4, Text: '返工'},
            Scrap: {Value: 5, Text: '报废'}
        },
        //业务类型
        AssemblyType: {
            Assembly: {Value: 0, Text: '装配'},
            Container: {Value: 1, Text: '容器'}
        },
        //异常类型
        ExceptionType: {
            DrainScard: {Value: 0, Text: '漏刷卡'},
            ScrappedScan: {Value: 1, Text: '报废异常扫描'},
            ReverseScan: {Value: 2, Text: '倒序扫描'},
            ReworkScan: {Value: 3, Text: '返工异常扫描'},
            System: {Value: 4, Text: '系统异常'},
            SpecialRuling: {Value: 5, Text: '特裁异常'},
            JudgeScan: {Value: 6, Text: '判定扫描异常'},
            TimingScan: {Value: 7, Text: '计时扫描异常'}
        }
    };
}]);

